﻿/*
**  BoxDef
*/
if (!$.Engine.Collision.Shape || typeof $.Engine.Collision.Shape === "undefined") $.Engine.Collision.Shape = {};
$.Engine.Collision.Shape.BoxDef = function () {
  this.type = $.Engine.Collision.Shape.Shape.e_unknownShape;
  this.userData = null;
  this.localPosition = new $.Engine.Math.Vector2D(0.0, 0.0);
  this.localRotation = 0.0;
  this.friction = 0.2;
  this.restitution = 0.0;
  this.density = 0.0;
  this.categoryBits = 0x0001;
  this.maskBits = 0xFFFF;
  this.groupIndex = 0;
  //

  this.type = $.Engine.Collision.Shape.Shape.e_boxShape;
  this.extents = new $.Engine.Math.Vector2D(1.0, 1.0);
}
Object.extend($.Engine.Collision.Shape.BoxDef.prototype, $.Engine.Collision.Shape.ShapeDef.prototype);
Object.extend($.Engine.Collision.Shape.BoxDef.prototype, {
  extents: null
});

